package eshop.local.ui;
import java.awt.Window;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;

public class MyWindowCloser extends WindowAdapter {
	
	public void windowClosing(WindowEvent e){
		Window closingWindow = e.getWindow();
		closingWindow.setVisible(false);
		closingWindow.dispose();
		
		System.exit(0);
	}

}

